--- socket.c.orig	2010-01-14 16:26:16.880369350 +0200
+++ socket.c	2010-01-14 16:26:26.359374160 +0200
@@ -22,6 +22,7 @@
  *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#define _GNU_SOURCE
 #include "syshead.h"
 
 #include "socket.h"
